<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Elaina
  Date: 2024/4/7
  Time: 14:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
集合map中的name值:${m.name}<br>
集合list中的第3个user的名字及分组:${l[2].username} ${l[2].group.gid}
<%--将集合中所有用户的名字显示在页面上--%>
<table border="1">
    <c:forEach items="${l}" var="user" varStatus="vs">
        <tr><td>${vs.count}</td><td>${user.username} </td></tr>
    </c:forEach>
</table>
</body>
</html>
